/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package central;

import giovynet.serial.Baud;
import java.util.Scanner;

/**
 *
 * @author agustin
 */
public class Central {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {

        System.out.println("Nombre de Puerto");
        String puertoX = pedirDato();
        System.out.println("Baudios");
        String baudios = pedirDato();
        Capturador cap = Capturador.getInstancia();
        cap.capturador(puertoX, Baud.valueOf("_" + baudios));
    }

    public static String pedirDato() {
        String texto = "";
        Scanner a = new Scanner(System.in);
        texto = a.nextLine();
        return texto;
    }
}
